/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entityprojet;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Ron
 */
@Entity
@Table(name = "F_EBANQUE")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FEbanque.findAll", query = "SELECT f FROM FEbanque f"),
    @NamedQuery(name = "FEbanque.findByEBBanque", query = "SELECT f FROM FEbanque f WHERE f.eBBanque = :eBBanque"),
    @NamedQuery(name = "FEbanque.findByEBGuichet", query = "SELECT f FROM FEbanque f WHERE f.eBGuichet = :eBGuichet"),
    @NamedQuery(name = "FEbanque.findByEBCompte", query = "SELECT f FROM FEbanque f WHERE f.eBCompte = :eBCompte"),
    @NamedQuery(name = "FEbanque.findByEBCle", query = "SELECT f FROM FEbanque f WHERE f.eBCle = :eBCle"),
    @NamedQuery(name = "FEbanque.findByEBCommentaire", query = "SELECT f FROM FEbanque f WHERE f.eBCommentaire = :eBCommentaire"),
    @NamedQuery(name = "FEbanque.findByJONum", query = "SELECT f FROM FEbanque f WHERE f.jONum = :jONum"),
    @NamedQuery(name = "FEbanque.findByEBStruct", query = "SELECT f FROM FEbanque f WHERE f.eBStruct = :eBStruct"),
    @NamedQuery(name = "FEbanque.findByNDevise", query = "SELECT f FROM FEbanque f WHERE f.nDevise = :nDevise"),
    @NamedQuery(name = "FEbanque.findByEBNo", query = "SELECT f FROM FEbanque f WHERE f.eBNo = :eBNo"),
    @NamedQuery(name = "FEbanque.findByEBAbrege", query = "SELECT f FROM FEbanque f WHERE f.eBAbrege = :eBAbrege"),
    @NamedQuery(name = "FEbanque.findByEBEmetteur01", query = "SELECT f FROM FEbanque f WHERE f.eBEmetteur01 = :eBEmetteur01"),
    @NamedQuery(name = "FEbanque.findByEBEmetteur02", query = "SELECT f FROM FEbanque f WHERE f.eBEmetteur02 = :eBEmetteur02"),
    @NamedQuery(name = "FEbanque.findByEBEmetteur03", query = "SELECT f FROM FEbanque f WHERE f.eBEmetteur03 = :eBEmetteur03"),
    @NamedQuery(name = "FEbanque.findByEBAdresse", query = "SELECT f FROM FEbanque f WHERE f.eBAdresse = :eBAdresse"),
    @NamedQuery(name = "FEbanque.findByEBComplement", query = "SELECT f FROM FEbanque f WHERE f.eBComplement = :eBComplement"),
    @NamedQuery(name = "FEbanque.findByEBCodePostal", query = "SELECT f FROM FEbanque f WHERE f.eBCodePostal = :eBCodePostal"),
    @NamedQuery(name = "FEbanque.findByEBVille", query = "SELECT f FROM FEbanque f WHERE f.eBVille = :eBVille"),
    @NamedQuery(name = "FEbanque.findByEBPays", query = "SELECT f FROM FEbanque f WHERE f.eBPays = :eBPays"),
    @NamedQuery(name = "FEbanque.findByEbBic", query = "SELECT f FROM FEbanque f WHERE f.ebBic = :ebBic"),
    @NamedQuery(name = "FEbanque.findByEbIban", query = "SELECT f FROM FEbanque f WHERE f.ebIban = :ebIban"),
    @NamedQuery(name = "FEbanque.findByEBCalculIBAN", query = "SELECT f FROM FEbanque f WHERE f.eBCalculIBAN = :eBCalculIBAN"),
    @NamedQuery(name = "FEbanque.findByEBNomAgence", query = "SELECT f FROM FEbanque f WHERE f.eBNomAgence = :eBNomAgence"),
    @NamedQuery(name = "FEbanque.findByJONumEscompte", query = "SELECT f FROM FEbanque f WHERE f.jONumEscompte = :jONumEscompte"),
    @NamedQuery(name = "FEbanque.findByJONumEncaiss", query = "SELECT f FROM FEbanque f WHERE f.jONumEncaiss = :jONumEncaiss"),
    @NamedQuery(name = "FEbanque.findByEBIntraGroupe", query = "SELECT f FROM FEbanque f WHERE f.eBIntraGroupe = :eBIntraGroupe"),
    @NamedQuery(name = "FEbanque.findByEBRaisonSocBenef", query = "SELECT f FROM FEbanque f WHERE f.eBRaisonSocBenef = :eBRaisonSocBenef"),
    @NamedQuery(name = "FEbanque.findByEBAdresseBenef", query = "SELECT f FROM FEbanque f WHERE f.eBAdresseBenef = :eBAdresseBenef"),
    @NamedQuery(name = "FEbanque.findByEBComplementBenef", query = "SELECT f FROM FEbanque f WHERE f.eBComplementBenef = :eBComplementBenef"),
    @NamedQuery(name = "FEbanque.findByEBCodePostalBenef", query = "SELECT f FROM FEbanque f WHERE f.eBCodePostalBenef = :eBCodePostalBenef"),
    @NamedQuery(name = "FEbanque.findByEBVilleBenef", query = "SELECT f FROM FEbanque f WHERE f.eBVilleBenef = :eBVilleBenef"),
    @NamedQuery(name = "FEbanque.findByEBPaysBenef", query = "SELECT f FROM FEbanque f WHERE f.eBPaysBenef = :eBPaysBenef"),
    @NamedQuery(name = "FEbanque.findByEBSiretBenef", query = "SELECT f FROM FEbanque f WHERE f.eBSiretBenef = :eBSiretBenef"),
    @NamedQuery(name = "FEbanque.findByCbProt", query = "SELECT f FROM FEbanque f WHERE f.cbProt = :cbProt"),
    @NamedQuery(name = "FEbanque.findByCbMarq", query = "SELECT f FROM FEbanque f WHERE f.cbMarq = :cbMarq"),
    @NamedQuery(name = "FEbanque.findByCbCreateur", query = "SELECT f FROM FEbanque f WHERE f.cbCreateur = :cbCreateur"),
    @NamedQuery(name = "FEbanque.findByCbModification", query = "SELECT f FROM FEbanque f WHERE f.cbModification = :cbModification"),
    @NamedQuery(name = "FEbanque.findByCbReplication", query = "SELECT f FROM FEbanque f WHERE f.cbReplication = :cbReplication"),
    @NamedQuery(name = "FEbanque.findByCbFlag", query = "SELECT f FROM FEbanque f WHERE f.cbFlag = :cbFlag")})
public class FEbanque implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "EB_Banque")
    private String eBBanque;
    @Lob
    @Column(name = "cbEB_Banque")
    private byte[] cbEBBanque;
    @Column(name = "EB_Guichet")
    private String eBGuichet;
    @Lob
    @Column(name = "cbEB_Guichet")
    private byte[] cbEBGuichet;
    @Column(name = "EB_Compte")
    private String eBCompte;
    @Lob
    @Column(name = "cbEB_Compte")
    private byte[] cbEBCompte;
    @Column(name = "EB_Cle")
    private String eBCle;
    @Column(name = "EB_Commentaire")
    private String eBCommentaire;
    @Column(name = "JO_Num")
    private String jONum;
    @Lob
    @Column(name = "cbJO_Num")
    private byte[] cbJONum;
    @Column(name = "EB_Struct")
    private Short eBStruct;
    @Column(name = "N_Devise")
    private Short nDevise;
    @Column(name = "EB_No")
    private Integer eBNo;
    @Column(name = "EB_Abrege")
    private String eBAbrege;
    @Lob
    @Column(name = "cbEB_Abrege")
    private byte[] cbEBAbrege;
    @Column(name = "EB_Emetteur01")
    private String eBEmetteur01;
    @Column(name = "EB_Emetteur02")
    private String eBEmetteur02;
    @Column(name = "EB_Emetteur03")
    private String eBEmetteur03;
    @Column(name = "EB_Adresse")
    private String eBAdresse;
    @Column(name = "EB_Complement")
    private String eBComplement;
    @Column(name = "EB_CodePostal")
    private String eBCodePostal;
    @Column(name = "EB_Ville")
    private String eBVille;
    @Column(name = "EB_Pays")
    private String eBPays;
    @Column(name = "EB_BIC")
    private String ebBic;
    @Column(name = "EB_IBAN")
    private String ebIban;
    @Column(name = "EB_CalculIBAN")
    private Short eBCalculIBAN;
    @Column(name = "EB_NomAgence")
    private String eBNomAgence;
    @Column(name = "JO_NumEscompte")
    private String jONumEscompte;
    @Lob
    @Column(name = "cbJO_NumEscompte")
    private byte[] cbJONumEscompte;
    @Column(name = "JO_NumEncaiss")
    private String jONumEncaiss;
    @Lob
    @Column(name = "cbJO_NumEncaiss")
    private byte[] cbJONumEncaiss;
    @Column(name = "EB_IntraGroupe")
    private Short eBIntraGroupe;
    @Column(name = "EB_RaisonSocBenef")
    private String eBRaisonSocBenef;
    @Column(name = "EB_AdresseBenef")
    private String eBAdresseBenef;
    @Column(name = "EB_ComplementBenef")
    private String eBComplementBenef;
    @Column(name = "EB_CodePostalBenef")
    private String eBCodePostalBenef;
    @Column(name = "EB_VilleBenef")
    private String eBVilleBenef;
    @Column(name = "EB_PaysBenef")
    private String eBPaysBenef;
    @Column(name = "EB_SiretBenef")
    private String eBSiretBenef;
    @Column(name = "cbProt")
    private Short cbProt;
    @Id
    @Basic(optional = false)
    @Column(name = "cbMarq")
    private Integer cbMarq;
    @Column(name = "cbCreateur")
    private String cbCreateur;
    @Column(name = "cbModification")
    @Temporal(TemporalType.TIMESTAMP)
    private Date cbModification;
    @Column(name = "cbReplication")
    private Integer cbReplication;
    @Column(name = "cbFlag")
    private Short cbFlag;
    @OneToMany(mappedBy = "cbEBNo")
    private Collection<FComptet> fComptetCollection;
    @JoinColumn(name = "BQ_No", referencedColumnName = "BQ_No")
    @ManyToOne(optional = false)
    private FBanque bQNo;

    public FEbanque() {
    }

    public FEbanque(Integer cbMarq) {
        this.cbMarq = cbMarq;
    }

    public String getEBBanque() {
        return eBBanque;
    }

    public void setEBBanque(String eBBanque) {
        this.eBBanque = eBBanque;
    }

    public byte[] getCbEBBanque() {
        return cbEBBanque;
    }

    public void setCbEBBanque(byte[] cbEBBanque) {
        this.cbEBBanque = cbEBBanque;
    }

    public String getEBGuichet() {
        return eBGuichet;
    }

    public void setEBGuichet(String eBGuichet) {
        this.eBGuichet = eBGuichet;
    }

    public byte[] getCbEBGuichet() {
        return cbEBGuichet;
    }

    public void setCbEBGuichet(byte[] cbEBGuichet) {
        this.cbEBGuichet = cbEBGuichet;
    }

    public String getEBCompte() {
        return eBCompte;
    }

    public void setEBCompte(String eBCompte) {
        this.eBCompte = eBCompte;
    }

    public byte[] getCbEBCompte() {
        return cbEBCompte;
    }

    public void setCbEBCompte(byte[] cbEBCompte) {
        this.cbEBCompte = cbEBCompte;
    }

    public String getEBCle() {
        return eBCle;
    }

    public void setEBCle(String eBCle) {
        this.eBCle = eBCle;
    }

    public String getEBCommentaire() {
        return eBCommentaire;
    }

    public void setEBCommentaire(String eBCommentaire) {
        this.eBCommentaire = eBCommentaire;
    }

    public String getJONum() {
        return jONum;
    }

    public void setJONum(String jONum) {
        this.jONum = jONum;
    }

    public byte[] getCbJONum() {
        return cbJONum;
    }

    public void setCbJONum(byte[] cbJONum) {
        this.cbJONum = cbJONum;
    }

    public Short getEBStruct() {
        return eBStruct;
    }

    public void setEBStruct(Short eBStruct) {
        this.eBStruct = eBStruct;
    }

    public Short getNDevise() {
        return nDevise;
    }

    public void setNDevise(Short nDevise) {
        this.nDevise = nDevise;
    }

    public Integer getEBNo() {
        return eBNo;
    }

    public void setEBNo(Integer eBNo) {
        this.eBNo = eBNo;
    }

    public String getEBAbrege() {
        return eBAbrege;
    }

    public void setEBAbrege(String eBAbrege) {
        this.eBAbrege = eBAbrege;
    }

    public byte[] getCbEBAbrege() {
        return cbEBAbrege;
    }

    public void setCbEBAbrege(byte[] cbEBAbrege) {
        this.cbEBAbrege = cbEBAbrege;
    }

    public String getEBEmetteur01() {
        return eBEmetteur01;
    }

    public void setEBEmetteur01(String eBEmetteur01) {
        this.eBEmetteur01 = eBEmetteur01;
    }

    public String getEBEmetteur02() {
        return eBEmetteur02;
    }

    public void setEBEmetteur02(String eBEmetteur02) {
        this.eBEmetteur02 = eBEmetteur02;
    }

    public String getEBEmetteur03() {
        return eBEmetteur03;
    }

    public void setEBEmetteur03(String eBEmetteur03) {
        this.eBEmetteur03 = eBEmetteur03;
    }

    public String getEBAdresse() {
        return eBAdresse;
    }

    public void setEBAdresse(String eBAdresse) {
        this.eBAdresse = eBAdresse;
    }

    public String getEBComplement() {
        return eBComplement;
    }

    public void setEBComplement(String eBComplement) {
        this.eBComplement = eBComplement;
    }

    public String getEBCodePostal() {
        return eBCodePostal;
    }

    public void setEBCodePostal(String eBCodePostal) {
        this.eBCodePostal = eBCodePostal;
    }

    public String getEBVille() {
        return eBVille;
    }

    public void setEBVille(String eBVille) {
        this.eBVille = eBVille;
    }

    public String getEBPays() {
        return eBPays;
    }

    public void setEBPays(String eBPays) {
        this.eBPays = eBPays;
    }

    public String getEbBic() {
        return ebBic;
    }

    public void setEbBic(String ebBic) {
        this.ebBic = ebBic;
    }

    public String getEbIban() {
        return ebIban;
    }

    public void setEbIban(String ebIban) {
        this.ebIban = ebIban;
    }

    public Short getEBCalculIBAN() {
        return eBCalculIBAN;
    }

    public void setEBCalculIBAN(Short eBCalculIBAN) {
        this.eBCalculIBAN = eBCalculIBAN;
    }

    public String getEBNomAgence() {
        return eBNomAgence;
    }

    public void setEBNomAgence(String eBNomAgence) {
        this.eBNomAgence = eBNomAgence;
    }

    public String getJONumEscompte() {
        return jONumEscompte;
    }

    public void setJONumEscompte(String jONumEscompte) {
        this.jONumEscompte = jONumEscompte;
    }

    public byte[] getCbJONumEscompte() {
        return cbJONumEscompte;
    }

    public void setCbJONumEscompte(byte[] cbJONumEscompte) {
        this.cbJONumEscompte = cbJONumEscompte;
    }

    public String getJONumEncaiss() {
        return jONumEncaiss;
    }

    public void setJONumEncaiss(String jONumEncaiss) {
        this.jONumEncaiss = jONumEncaiss;
    }

    public byte[] getCbJONumEncaiss() {
        return cbJONumEncaiss;
    }

    public void setCbJONumEncaiss(byte[] cbJONumEncaiss) {
        this.cbJONumEncaiss = cbJONumEncaiss;
    }

    public Short getEBIntraGroupe() {
        return eBIntraGroupe;
    }

    public void setEBIntraGroupe(Short eBIntraGroupe) {
        this.eBIntraGroupe = eBIntraGroupe;
    }

    public String getEBRaisonSocBenef() {
        return eBRaisonSocBenef;
    }

    public void setEBRaisonSocBenef(String eBRaisonSocBenef) {
        this.eBRaisonSocBenef = eBRaisonSocBenef;
    }

    public String getEBAdresseBenef() {
        return eBAdresseBenef;
    }

    public void setEBAdresseBenef(String eBAdresseBenef) {
        this.eBAdresseBenef = eBAdresseBenef;
    }

    public String getEBComplementBenef() {
        return eBComplementBenef;
    }

    public void setEBComplementBenef(String eBComplementBenef) {
        this.eBComplementBenef = eBComplementBenef;
    }

    public String getEBCodePostalBenef() {
        return eBCodePostalBenef;
    }

    public void setEBCodePostalBenef(String eBCodePostalBenef) {
        this.eBCodePostalBenef = eBCodePostalBenef;
    }

    public String getEBVilleBenef() {
        return eBVilleBenef;
    }

    public void setEBVilleBenef(String eBVilleBenef) {
        this.eBVilleBenef = eBVilleBenef;
    }

    public String getEBPaysBenef() {
        return eBPaysBenef;
    }

    public void setEBPaysBenef(String eBPaysBenef) {
        this.eBPaysBenef = eBPaysBenef;
    }

    public String getEBSiretBenef() {
        return eBSiretBenef;
    }

    public void setEBSiretBenef(String eBSiretBenef) {
        this.eBSiretBenef = eBSiretBenef;
    }

    public Short getCbProt() {
        return cbProt;
    }

    public void setCbProt(Short cbProt) {
        this.cbProt = cbProt;
    }

    public Integer getCbMarq() {
        return cbMarq;
    }

    public void setCbMarq(Integer cbMarq) {
        this.cbMarq = cbMarq;
    }

    public String getCbCreateur() {
        return cbCreateur;
    }

    public void setCbCreateur(String cbCreateur) {
        this.cbCreateur = cbCreateur;
    }

    public Date getCbModification() {
        return cbModification;
    }

    public void setCbModification(Date cbModification) {
        this.cbModification = cbModification;
    }

    public Integer getCbReplication() {
        return cbReplication;
    }

    public void setCbReplication(Integer cbReplication) {
        this.cbReplication = cbReplication;
    }

    public Short getCbFlag() {
        return cbFlag;
    }

    public void setCbFlag(Short cbFlag) {
        this.cbFlag = cbFlag;
    }

    @XmlTransient
    public Collection<FComptet> getFComptetCollection() {
        return fComptetCollection;
    }

    public void setFComptetCollection(Collection<FComptet> fComptetCollection) {
        this.fComptetCollection = fComptetCollection;
    }

    public FBanque getBQNo() {
        return bQNo;
    }

    public void setBQNo(FBanque bQNo) {
        this.bQNo = bQNo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cbMarq != null ? cbMarq.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FEbanque)) {
            return false;
        }
        FEbanque other = (FEbanque) object;
        if ((this.cbMarq == null && other.cbMarq != null) || (this.cbMarq != null && !this.cbMarq.equals(other.cbMarq))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityprojet.FEbanque[ cbMarq=" + cbMarq + " ]";
    }
    
}
